package com.bdqn.ch07.service;

import com.bdqn.ch07.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface UserService {

    public User getUserByIdService(Long id);

    User findByUserNameBiz(String usrName);

    public List<User> findByUserList();

    public Page<User> getUserListPageService(String usrName, Long roleId, int pageIndex);

    public Page<User> findPageByMap(Map param, Pageable pageable);

    void saveUserService(User user) throws Exception;

    void delByUserIdService(Long userId) throws Exception;

    User viewByIdService(Long userId);
}
